import request from '@/utils/requist'

// 注册接口
export const registerAPI = data => {
  return request({
    method: 'POST',
    url: '/index/reg',
    data: data
  })
}

// 登录接口
export const loginAPI = data => {
  return request({
    method: 'POST',
    url: '/index/login',
    data: data
  })
}

// 用户信息
export const userAPI = () => {
  return request({
    method: 'POST',
    url: '/user/getUserInfo'
  })
}

// 更新用户信息
export const updateAPI = data => {
  return request({
    method: 'post',
    url: '/user/update',
    data: data
  })
}
